<div>
    <div class="row">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview ">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree " v-for="(item,index) in shareReadingInfo.states"
                            :key="index" @click="swatchShareState(item)"
                            :class="{'vc-node-selected':shareReadingInfo.conditions.state == item.statusCd}">
                            {{item.name}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <select class="custom-select" v-model="shareReadingInfo.conditions.fsmId">
                                <option selected  value="">{{vc.i18n('请选择公摊表','shareReading')}}</option>
                                <option :value="item.fsmId" v-for="(item,index) in shareReadingInfo.floorShares" :key="index">{{item.floorNum}}栋-{{item.meterTypeName}}</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择开始时间','shareReading')"
                                    v-model="shareReadingInfo.conditions.startTime" class=" form-control startTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请选择结束时间','shareReading')"
                                    v-model="shareReadingInfo.conditions.endTime" class=" form-control endTime">
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm"
                                v-on:click="_queryShareReadingMethod()">
                                <vc:i18n name="查询"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>


            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="公摊抄表" namespace="shareReading"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" @click="_openAddShareReadingModal()">
                            <vc:i18n name="抄表" namespace="shareReading"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">

                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name='编号' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='名称' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='上期度数' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='本期度数' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='度数' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='上期读表时间' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='本期读表时间' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='抄表人' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='状态' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='说明' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='审核人' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='审核意见' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='公摊进度' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='抄表时间' namespace='shareReading'></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name='操作'></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="shareReading in shareReadingInfo.shareReadings">
                                <td class="text-center">{{shareReading.readingId}}</td>
                                <td class="text-center">{{shareReading.title}}</td>
                                <td class="text-center">{{shareReading.preDegrees}}</td>
                                <td class="text-center">{{shareReading.curDegrees}}</td>
                                <td class="text-center">{{(shareReading.curDegrees-shareReading.preDegrees)}}</td>
                                <td class="text-center">{{shareReading.preReadingTime}}</td>
                                <td class="text-center">{{shareReading.curReadingTime}}</td>
                                <td class="text-center">{{shareReading.createStaffName}}</td>
                                <td class="text-center">
                                    <span v-if="shareReading.state == 'W'">待审核</span>
                                    <span v-else-if="shareReading.state == 'C'">审核通过</span>
                                    <span v-else>审核不通过</span>
                                </td>
                                <td class="text-center">{{shareReading.remark || '-'}}</td>

                                <td class="text-center">{{shareReading.auditStaffName || '-'}}</td>
                               
                                <td class="text-center">{{shareReading.stateMsg || '-'}}</td>
                                <td class="text-center">{{shareReading.shareMsg || '-'}}</td>
                                <td class="text-center">{{shareReading.createTime}}</td>
                                <td class="text-center">
                                    <div class="btn-group" v-if="shareReading.state == 'W' && vc.hasPrivilege('502025032678040006')">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openAuditShareReadingModel(shareReading)">
                                            <vc:i18n name='审核'></vc:i18n>
                                        </button>
                                    </div>
                                    <div class="btn-group" v-if="shareReading.state == 'W'">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteShareReadingModel(shareReading)">
                                            <vc:i18n name='删除'></vc:i18n>
                                        </button>
                                    </div>
                                    <div class="btn-group" >
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openShareFee(shareReading)">
                                            <vc:i18n name='公摊费用'></vc:i18n>
                                        </button>
                                    </div>
                                </td>

                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>


    <vc:create path="fee/addShareReading"></vc:create>
    <vc:create path="fee/auditShareReading"></vc:create>
    <vc:create path="fee/deleteShareReading"></vc:create>

</div>